#ifndef _UFO_H
#define _UFO_H

#include "Iw2D.h"
#include "vector2.h"
#include "boundingbox.h"
#include "variables.h"

class UFO
{
public:
	UFO();
	~UFO();
	void SetupImages();
	void CleanupImages();
    void Render();
    void Update(int deltaTimeMs);
	void FlyTo(int x, int y);
	void FlyTo(Vector2 destination);
	void ActivateShield();
	void ActivateSpeed();
	void Crash();

	BoundingBox boundingBox;

private:
	CIw2DImage* ufoSprite;
	Vector2 position;
	Vector2 destination;
	Vector2 direction;
	int width;
	int height;
	int widthHalf;
	int heightHalf;
	float speed;
	int speedTimer;
	int shieldTimer;
	int stallTimer;
	bool moving;
	bool shielded;
	bool positionXGreaterThanDestination;
	bool positionYGreaterThanDestination;
};

#endif